#!/usr/bin/env python
#coding=utf-8
import logging
from scrapy import cmdline
name = 'hospital'
cmd = 'scrapy crawl {0}'.format(name)
logfile = "./hospital.log"
logging.basicConfig(filename=logfile, level=logging.INFO)
cmdline.execute(cmd.split())